package com.example.kotlinview.tab

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.kotlinview.R

class TabActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_tab)
    }

    override fun onResume() {
        super.onResume()

        var transaction = supportFragmentManager.beginTransaction().run {
            this.add(R.id.flayout_tab_activity,ListFragment())
            this.commit()
        }
    }
}